package cn.ydt.ydt.pojo.shopping.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AddVegetableDTO implements Serializable {
    /**
     * 菜名
     */
    @ApiModelProperty(value = "商品名",required = true,example = "苹果")
    @NotNull(message = "商品名不能为空")
    private String vegetableName;

    /**
     * 种类
     */
    @ApiModelProperty(value = "商品类型",required = true,example = "水果")
    @NotNull(message = "商品类型不能为空")
    private String vegetableSort;

    /**
     * 图片
     */
    @ApiModelProperty(value = "商品图片",required = true,example = "aa.jpg")
    private String vegetableImage;

    /**
     * 价格
     */
    @ApiModelProperty(value = "商品价格",required = true,example = "50.00")
    @NotNull(message = "商品价格不能为空")
    private Double vegetablePrice;

    /**
     * 最大购买量
     */
    @ApiModelProperty(value = "最大购买量",required = true,example = "5")
    @NotNull(message = "最大购买量不能为空")
    private Integer vegetableMax;

    /**
     * 库存
     */
    @ApiModelProperty(value = "库存",required = true,example = "5")
    @NotNull(message = "库存不能为空")
    private Integer vegetableStock;
}
